<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ page isELIgnored="false" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	response.setCharacterEncoding("UTF-8");
	response.setContentType("text/xml");
	response.setHeader("Cache-Control","no-cache"); 
	response.setHeader("Pragma","no-cache"); 
%>

<menu>
	<item id="a" text="修改" action="showDialog('鼎烜电力集团网络办公平台','getDepartmentById.action?departmentVo.id=<s:property value="departmentVo.id"/>',500,420);"/>
	<item id="e" text="-"/>
	<item id="a" text="删除" action="showDialog('鼎烜电力集团网络办公平台','gotoDeleteDepartment.action?departmentVo.id=<s:property value="departmentVo.id"/>',500,420);"/>
	<s:if test="departmentVo.type=='department'">
		<item id="e" text="-"/>
		<item id="a" text="添加部门" action="showDialog('鼎烜电力集团网络办公平台','gotoDepartment.action?departmentVo.parentId=<s:property value="departmentVo.id"/>&amp;departmentVo.type=department',500,420);"/>
	</s:if>
	<s:elseif test="departmentVo.type=='group'">
		<item id="e" text="-"/>
		<item id="a" text="添加子公司" action="showDialog('鼎烜电力集团网络办公平台','gotoDepartment.action?departmentVo.parentId=<s:property value="departmentVo.id"/>&amp;departmentVo.type=ccompany',500,420);"/>	
		<item id="e" text="-"/>
		<item id="a" text="添加部门" action="showDialog('鼎烜电力集团网络办公平台','gotoDepartment.action?departmentVo.parentId=<s:property value="departmentVo.id"/>&amp;departmentVo.type=department',500,420);"/>
	</s:elseif>
	<s:elseif test="departmentVo.type=='ccompany'">
		<item id="e" text="-"/>
		<item id="a" text="添加部门" action="showDialog('鼎烜电力集团网络办公平台','gotoDepartment.action?departmentVo.parentId=<s:property value="departmentVo.id"/>&amp;departmentVo.type=department',500,420);"/>
	</s:elseif>
</menu>  
